package r21310.chap04.练习;

import java.util.Scanner;
public class haixianpisa extends fulei{
    private String p;

    public String getP() {
        return p;
    }

    public void setP(String p) {
        this.p = p;
    }

    public haixianpisa(int size, int pice) {
            super(size, pice);
        }

        public void peiliao(){
            System.out.println("请输入配料信息（请用逗号分隔）：");
            Scanner haixian=new Scanner(System.in);
            p=haixian.next();
            setP(p);
        }

        public void name() {
            System.out.println("名称：海鲜披萨");
        }
        public void size(){
            System.out.println("请输入披萨大小:");
            Scanner s=new Scanner(System.in);
            int b=s.nextInt();
            setSize(b);
        }
        public void pice(){
            System.out.println("请输入披萨价格:");
            Scanner s=new Scanner(System.in);
            int a=s.nextInt();

           setPice(a);
        }

        public void pices(){
            System.out.println("价格"+getPice());

        }
        public void sizas(){
            System.out.println("尺寸"+getSize());
        }
        public void peiliaos(){
            System.out.println("配料为"+getP());
        }


    }


